﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ModifyDeskTop.aspx.cs" Inherits="ZX.WebApp.DeskTop.SetDesktop.ModifyDeskTop" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    
    <script type="text/javascript" src="../../Scripts/jquery-1.4.1-vsdoc.js"></script>
    <script type="text/javascript" src="../../Scripts/jquery-1.4.1.min.js"></script>
    <script src="../../Scripts/Public.js" type="text/javascript"></script>
    <script type="text/javascript">
        var baseUrl = "ModifyDeskTop.aspx";

        var Modify = function () {
            if ($("#txtPath").val() == "") { alert("链接路径不能为空"); return; }

            var RoleDesktopID = getPar1("RoleDesktopID");
            var RoleID = getPar1("RoleID");
            var DeskTopName = $("#txtDeskName").val();
            var Height = $("#txtHeight").val();
            var Src = $("#txtPath").val();
            var PostData = {
                "RoleDesktopID": RoleDesktopID,
                "Src": Src,
                "DeskTopName": DeskTopName,
                "Height": Height,
                "RoleID": RoleID,
                "PageType": $("#ddlPageType").find(":selected").val()
            };
            $.post(baseUrl + "?Oper=Modify", PostData, function (data) {
                alert(data);
                window.parent.refreshForSelected2(DeskTopName);
                window.parent.closeWin();
            });
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <input type="hidden" id="txtID" />
    <div style="text-align:center;">
        <div style="text-align:center;">
            <div style="width:22%; text-align:right; float:left;margin-top:6px;">桌面名称：</div>
            <div style="width:78%; text-align:left; float:left;"><input type="text" style="width:335px;" runat="server" id="txtDeskName" /></div>
        </div>
        &nbsp;
       <div>
            <div style="width:22%; text-align:right; float:left;margin-top:6px;">链接路径：</div>
            <div style="width:78%; text-align:left; float:left;"><input type="text" style="width:335px;" runat="server" id="txtPath" /></div>
        </div>
         &nbsp;
       <div>
            <div style="width:22%; text-align:right; float:left;margin-top:6px;">高    度：</div>
            <div style="width:78%; text-align:left; float:left;"><input type="text" style="width:335px;" runat="server" id="txtHeight" /></div>
        </div>
         &nbsp;
        <div>
            <div style="width:22%; text-align:right; float:left;margin-top:6px;">显示类型：</div>
            <div style="width:78%; text-align:left; float:left;">
                <asp:DropDownList ID="ddlPageType" runat="server">
                    <asp:ListItem Selected="True" Text="默认方式" Value="0">默认方式</asp:ListItem>
                    <asp:ListItem Text="页面方式" Value="1">页面方式</asp:ListItem>
                </asp:DropDownList> 
            </div>
        </div>
    </div>
    </form>
</body>
</html>
